Skip to content

Code Tweaks for GPUTrail.gd#13

Open
maaxxaam wants to merge 2 commits intocelyk:mainfrom
maaxxaam:code-refinement
Open

Code Tweaks for GPUTrail.gd#13
maaxxaam wants to merge 2 commits intocelyk:mainfrom
maaxxaam:code-refinement

Conversation

@maaxxaam
Copy link

Thank you for the cool plugin! Made some tweaks to GPUTrail.gd to make the code easier to read. Hope you find this useful

- Modify _set_flag to work on _flags only and update shader param
- Use VectorX.ZERO constant for clarity
- Make constants _DEFAULT_TEXTURE and _DEFAULT_CURVE resources
  instead of strings
- Remove moot setter _set_scroll
- Manually set flags in _ready() instead of relying on setters and
  rewriting shader param 4 extra times
- Formatting tweaks
@celyk celyk self-requested a review February 25, 2025 02:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant